import request from '@/utils/request'

// 查询试卷信息列表
export function listExaminationpaperinfo(query) {
  return request({
    url: '/system/examinationpaperinfo/list',
    method: 'get',
    params: query
  })
}

// 查询试卷信息详细
export function getExaminationpaperinfo(safetyExaminationPaperId) {
  return request({
    url: '/system/examinationpaperinfo/' + safetyExaminationPaperId,
    method: 'get'
  })
}

// 新增试卷信息
export function addExaminationpaperinfo(data) {
  return request({
    url: '/system/examinationpaperinfo',
    method: 'post',
    data: data
  })
}

// 修改试卷信息
export function updateExaminationpaperinfo(data) {
  return request({
    url: '/system/examinationpaperinfo/update',
    method: 'post',
    data: data
  })
}

// 删除试卷信息
export function delExaminationpaperinfo(safetyExaminationPaperId) {
  return request({
    url: '/system/examinationpaperinfo/' + safetyExaminationPaperId,
    method: 'delete'
  })
}

// 导出试卷信息
export function exportExaminationpaperinfo(query) {
  return request({
    url: '/system/examinationpaperinfo/export',
    method: 'get',
    params: query
  })
}

//确认使用试卷
export function insertExaminationPapers(data) {
  return request({
    url: '/system/back/safetyexaminationback/insertExaminationPaper',
    method: 'post',
    data: data
  })
}